/**
 * 
 */
package org.xlab.baseframework.test.platform.common.comparator;

import java.util.Comparator;

import org.xlab.baseframework.test.platform.domain.BizTransactionLog;

/**
 * @author makubex
 * 
 */
public class BizTransactionLogComparator implements
		Comparator<BizTransactionLog> {

	/**
	 * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
	 */
	public int compare(BizTransactionLog arg0, BizTransactionLog arg1) {
		if (arg0.getToken().hashCode() < arg1.getToken().hashCode())
			return -1;
		else if (arg0.getToken().hashCode() > arg1.getToken().hashCode())
			return 1;
		else
			return 0;
	}

}
